home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / grafix / 3d / dust / dusthelp2 / if < prev    next >
Text File  |  1996-02-26  |  560b  |  12 lines

  1.   COMMAND IF
  2. -----------------------------------------------------------------
  3.     Purpose: Simple but usefull if-construct
  4.       Usage: IF(<expression>,<command>[,<alternative command>])
  5.    Examples: if(1<2,echo(true),echo(false))
  6.              if(xmin>t,.xmin=t)
  7.              if(a,echo(a isnt 0),echo(a is 0))
  8.       Notes: 1. Only simple expressions containing
  9.                  "<=", ">=", "<", ">", "=" are allowed ("==" is the same as "=")
  10.              2. Writing in C you would say:
  11.                  if(<expression>) <command>; else <alternative command>;
  12.